import uniRequest from "./request.js";

// openid
export const openId = (params = {}) => {
	return uniRequest('/api/auth/getOpenid', 'POST', params, 'jwt', {});
}
//手机号
export const mobile = (params = {}) => {
	return uniRequest('/api/auth/getMobile', 'POST', params, 'jwt', {});
}
// 登录
export const login = (params = {}) => {
	return uniRequest('/api/auth/login', 'POST', params, 'jwt', {});
}
//下载
export const getUpgrade = (params = {}) => {
	return uniRequest('/api/getUpgrade', 'POST', params, 'jwt', {});
}

//更新成功
export const getDoUpgrade = (params = {}) => {
	return uniRequest('/api/doUpgrade', 'POST', params, 'jwt', {});
}